import React from 'react'
import {HashRouter,Route,Link} from 'react-router-dom'

import Home from './components/Home.jsx'
import video from './components/Video.jsx';
import about from './components/About.jsx';

export default class App extends React.Component{
    constructor(props){
        super(props)
    }


    render(){
        return <HashRouter>
        <div style={{marginLeft:20}}>
            <h1>这是一个标题标签</h1>
            <Link to="/home">首页</Link>&nbsp;
            <Link to="/video/top250/10">电影</Link>&nbsp;
            <Link to="/about">联系</Link>
            <hr/>
            <Route path='/home' component={Home}></Route>
            <hr/>
            <Route path='/video/:type/:id' component={video} exact></Route>
            <hr/>
            <Route path='/about' component={about}></Route>
        </div>
        </HashRouter>
    }
}